package jUnitTest;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import businessLogic.BookManageBLService;
import businessLogic.BookManage_Stub;

public class BookManageBLServiceTest {
	private BookManageBLService bookManage;

	@Before
	public void setUp() throws Exception {
		bookManage = new BookManage_Stub(null);
	}

	@Test
	public void testLogin() {
		boolean result = bookManage.login("admin", "admin");
		assertEquals(true, result);
	}

	@Test
	public void testGetBookByISBN() {
		assertNull("failed", bookManage.getBookByISBN(null));
	}

	@Test
	public void testGetBookByName() {
		assertNull("failed", bookManage.getBookByName(null));
	}

	@Test
	public void testGetBookByPress() {
		assertNull("failed", bookManage.getBookByPress(null));
	}

	@Test
	public void testModifyBookInfo() {
		bookManage.modifyBookInfo(null, null, null, null, null, 0, null, null);
	}

	@Test
	public void testDeleteBook() {
		bookManage.deleteBook(null);
	}

	@Test
	public void testAddBook() {
		bookManage.addBook(null);
	}

}
